﻿using MES.Server.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES.Server.IService
{
    public interface IMenuService
    {
        IEnumerable<MenuEntity> GetAllMenus(string key);

        IEnumerable<MenuEntity> GetMenusByUser(int uid);

        MenuEntity[] GetMenusByRoles(int[] ids);

        int Update(MenuEntity menu);

        int Delete(string id);
        int Delete(string[] ids);
    }
}
